import Vuex from 'vuex';
import Vue from 'vue';
import mutations from './mutations';
import actions from './action';
Vue.use(Vuex);
const state = {
  isLoading: false,
  platform:"",
  channel:"",
  phone_no:"",
  goodsData:{}
}
const getters = {
  loadingState: state => {
    return state.isLoading
  },
  mychannel: state => {
	  return state.channel || "wx"
  }
}
export default new Vuex.Store({
  state,
  getters,
  mutations,
  actions
})
